<#assign _filecomment_namesfx>ServiceImpl.java</#assign>
<#include "common.ftl">
${_filecomment}
package ${_serviceimplpck};

import ${_daofullname};
import ${_cfullname};
import ${_servicefullname};
/**
 * Dao
 * 
 * @author ${_uname} created on ${_time}
 * @since 
 */
public class ${_serviceimplname} implements ${_servicename} {
	
	private ${_daoname} ${_daouname};
	
	/**
     * Insert
     * @param ${_clname}
     * @author ${_uname} created on ${_time} 
     * @since
     */
	public void insert${_cname}(${_cname} ${_clname}) {
		${_daouname}.insert${_cname}(${_clname});
	}
	/**
     * Delete
     * @param id
     * @author ${_uname} created on ${_time}
     * @since
     */
	public void delete${_cname}ById(String ${obj.primaryKey}) {
		${_daouname}.delete${_cname}ById(${obj.primaryKey});
	}
	/**
     * Update
     * @param ${_clname}
     * @author ${_uname} created on ${_time} 
     * @since
     */
	public void update${_cname}(${_cname} ${_clname}) {
		${_daouname}.update${_cname}(${_clname});
	}
	/**
     * Select
     * @param ${obj.primaryKey}
     * @author ${_uname} created on ${_time}
     * @since
     */
	public ${_cname} get${_cname}(String ${obj.primaryKey}) {
		return ${_daouname}.get${_cname}(${obj.primaryKey});
	}
	
	// -------------------------------- Gettter/Setter -------------------------------- //
	public ${_daoname} get${_daoname}(){
		return ${_daouname};
	}

	public void set${_daoname}(${_daoname} ${_daouname}){
		this.${_daouname} = ${_daouname};
	}
}